<?php
/*
+ ----------------------------------------------------------------------------------------------+
|     e107 website system  : http://e107.org.ru
|     Released under the terms and conditions of the GNU General Public License (http://gnu.org).
|
|     Plugin "roll_mini"
|     Author: Alex ANP alex-anp@ya.ru
+-----------------------------------------------------------------------------------------------+
*/

if (!defined('e107_INIT')) { exit; }
/*
$e_plug_table = "roll_mini"; //This is set to the table name you have decided to use.
$reply_location= e_PLUGIN."roll_mini/roll.php?card_id=$nid"; //This is set to the location you'd like the user to return to after replying to a comment.
$db_table = "roll_mini"; //This is the name of your plugins database table.
$link_name = "name"; //This is the name of the field in your plugin's db table that corresponds to it's name or title.
$db_id = "id"; // This is the name of the field in your plugin's db table that correspond to it's unique id number.
$plugin_name = "roll_mini"; // A name for your plugin. It will be used in links to comments, in list_new/new.php.
*/

//This is set to the table name you have decided to use.
$e_comment['eplug_comment_ids'] = "roll_mini_cards";

//This is set to the location you'd like the user to return to after replying to a comment.
$e_comment['reply_location'] = e_PLUGIN."roll_mini/roll.php?card_id={NID}";

//A name for your plugin. It will be used in links to comments, in list_new/new.php.
$e_comment['plugin_name'] = "roll_mini";

//The path of the plugin folder
$e_comment['plugin_path'] = "roll_mini";

//This is the name of the field in your plugin's db table that corresponds to it's name or title.
$e_comment['db_title'] = "name";

//This is the name of the field in your plugin's db table that correspond to it's unique id number.
$e_comment['db_id'] = "id";

//qry must be set with a select_gen query.
//the main reason would be to check if a category from another table has a class restriction
//the id of the item should be provided as {NID}
//returned fields should at least contain the 'link_id' and 'db_id' fields set above
$e_comment['qry'] = "
SELECT *
FROM roll_mini_cards
WHERE id = '{NID}'";

?>